<?php
// Module Definition
$module['name'] = 'Tux';
$module['description'] = 'Maintain tux virtual host configuration.';

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'enable':
		break;
	case 'disable':
		break;
	case 'hook':
		// add the tux functions to the various hooks so that they will be run too.
		// For example the line below adds the tux_domain_create function
		// to the server:domain:create hook so that when domains are 
		// created the tux_domain_create function gets run along with the
		// other things/functions already in the server:domain:create hook.
		// This means that the tux function gets run when a domain is created.
		register_hook('server:domain:create', 'tux_domain_create');
		register_hook('server:domain:remove', 'tux_domain_remove');
		register_hook('server:domain:suspend', 'tux_domain_suspend');
		register_hook('server:domain:unsuspend', 'tux_domain_unsuspend');
		register_hook('server:domain:update', 'tux_domain_update');
		register_hook('server:service:monitor', 'tux_monitor');
		register_hook('server:start', 'tux_domain_boot');
		register_hook('server:cfg:default', 'tux_add_config');
		register_hook('web:cfg:default', 'tux_add_config');
		register_hook('web:lang', 'tux_add_lang');
		
		register_hook('server:service:start:tux', 'tux_start');
		register_hook('server:service:stop:tux', 'tux_stop');
		register_hook('server:service:restart:tux', 'tux_restart');
		break;
}
?>